import { get, post } from '@/utils/request';
type orderParam = {
	pageNum: number;
	pageSize: number;
	queryType: string;
};
class OrderApi {
	static getOrderList(param: orderParam) {
		return post('/biz/capi/order/list', param);
	}
	static getOrderDetail(orderId: number) {
		return get(`/biz/capi/order/get/${orderId}`);
	}
	static cancelOrder(orderId: number) {
		return get(`/biz/capi/order/cancel/${orderId}`);
	}
	/**支付回调*/
	static callback(params: any) {
		return post(`/biz/capi/order/pay/callback`, params);
	}
}
export default OrderApi;
